# coding: utf8
# controllers/plugin_uc_mobile.py

import os
cwd = os.getcwd()
format=MARKMIN

def index(): return dict(message="hello from plugin_uc_mobile.py")

def about():
    """
    Displays app_name/plugin_uc_mobile/static/ABOUT
    """
    about_path = os.path.join(cwd,'applications',request.application, 'static/plugin_uc_mobile/ABOUT')
    about_body=open(about_path,'r').read()
    body = MARKMIN(about_body)
    return dict(body=body)
 
def license():
    """
    Displays app_name/plugin_uc_mobile/static/LICENSE
    """
    license_path = os.path.join(cwd,'applications',request.application, 'static/plugin_uc_mobile/LICENSE')
    license_body=open(license_path,'r').read()
    body = MARKMIN(license_body)
    return dict(body=body)
    
def universal_cake():
    """
    Displays app_name/plugin_uc_mobile/static/UNIVERSAL_CAKE
    """
    universal_cake_path = os.path.join(cwd,'applications',request.application, 'static/plugin_uc_mobile/UNIVERSAL_CAKE')
    universal_cake_body=open(universal_cake_path,'r').read()
    body = MARKMIN(universal_cake_body)
    return dict(body=body)

def voice_of_access():
    """
    Displays app_name/plugin_uc_mobile/static/VOICE_OF_ACCESS
    """
    voice_of_access_path = os.path.join(cwd,'applications',request.application, 'static/plugin_uc_mobile/VOICE_OF_ACCESS')
    voice_of_access_body=open(voice_of_access_path,'r').read()
    body = MARKMIN(voice_of_access_body)
    return dict(body=body)
